﻿using System.Windows.Controls;

namespace Lib.WPF.Entitys;
/// <summary>
/// 导航标签实体对象
/// </summary>
public class Tab {
    /// <summary>
    /// 
    /// </summary>
    public static Tab Create(string Key = null, string Title = null) {
        return new Tab(Key, Title);
    }
    /// <summary>
    /// 构造函数
    /// </summary>
    public Tab(string Key = null, string Title = null) {
        this.Key = Key; this.Title = Title; 
    }
    /// <summary>
    ///  关键字（Navigate.Key）
    /// </summary>
    public string Key { get; set; }
    /// <summary>
    /// 控件名称（标签按钮名称 RadioButton.Name）
    /// </summary>
    public string Name { get; set; }
    /// <summary>
    /// 标题 
    /// </summary>
    public string Title { get; set; }
    /// <summary>
    /// 排序索引
    /// </summary>
    public int Index { get; set; }
    /// <summary>
    /// 是否锁定
    /// </summary>
    public bool IsLock { get; set; }
    /// <summary>
    /// 标签按钮控件
    /// </summary>
    public RadioButton Control { get; set; }

}
